package dd.prog2.exercises.set01;

public class VierGewinnt {

	public static void main(String[] args) {
		//init new Board
		Board myBoard = new Board();
		myBoard.drawBoard();
		int column=0;
		while(!myBoard.getGameOver()){
			System.out.println("Spieler "+myBoard.getPlayer()+" dran");
			column = Terminal.readInt("bitte Spalte eingeben(1-7) ");
			System.out.println(myBoard.setTurn(column-1));
			myBoard.drawBoard();
		}
		
		if(myBoard.getWinner() != 0) 
			System.out.println("Spieler "+myBoard.getWinner()+" hat gewonnen");
		else
			System.out.println("alle Felder besetzt. kein Gewinner");

	}

}
